package com.demo.service.impl;

import com.demo.dao.Gpa;
import com.demo.mapper.GpaMapper;
import com.demo.service.GpaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GpaServiceImpl implements GpaService {

    @Autowired
    GpaMapper gpaMapper;

    @Override
    public int getRankBySid(String sid, String term) {
        return gpaMapper.getRankBySid(sid,term);
    }

    @Override
    public double getCreditBySid(String sid, String term) {
        return gpaMapper.getCreditBySid(sid,term);
    }

    @Override
    public void insertCredit(Gpa gpa) {
        gpaMapper.insertCredit(gpa);
    }


}
